package com.ht.pms.core.dto;

public enum ReturnCodeEnum {
    SUCCESS(0, "执行成功"),
    ERROR_PARAM(9997, "参数错误"),
    EXCEPTION(9998, "执行异常"),
    FAIL(9999, "执行失败, 未知错误！"),
    EXCEL_RESULT(9996, "处理失败！请查看相应日志！");

    protected int returnCode;
    protected String codeDesc;

    private ReturnCodeEnum(int returnCode, String codeDesc) {
        this.returnCode = returnCode;
        this.codeDesc = codeDesc;
    }

    public int getReturnCode() {
        return this.returnCode;
    }

    public String getCodeDesc() {
        return this.codeDesc;
    }
}
